import request from '@/utils/request.js'

export const login = (data) => {
    return request({
        url: '/auth/login',
        method: 'post',
        data: data
    })
}

export const verifyCode = () => {
    return request({
        url: '/auth/code',
        method: 'get'
    })
}

// 获取当前登录的机构信息
export const authInfo = () => {
    return request({
        url: '/auth/info',
        method: 'get'
    })
}
